This assignment is based on data from the Affairs dataset that is part of the Rdatasets package.
https://vincentarelbundock.github.io/Rdatasets/doc/AER/Affairs.html
The following 3D plot shows a comparsion of the people surveyed, the number of affairs by age, number of years married, and gender.